const userDao = require('../dao/userDao');

module.exports.insert = async function insert(user){
    return await userDao.insert(user);
}

module.exports.usernameExist = async function(username){
    return await userDao.findByUsername(username);
}

module.exports.login = async function(user){
   
    return await userDao.findByUsernameAndPwd(user);
}